package String;

public class EndWith {
    public static void main(String[] args) {
        String s ="www.baidu.cn";
        boolean end= s.endsWith(".cn");
        System.out.println(end);
    }
}
